//
//  UserInfo.h
//  XIWenLeJian
//
//  Created by lanou3g on 15/11/16.
//  Copyright © 2015年 蓝足. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@class UserInfo;
// 委托代理
@protocol UserInfoDelegate <NSObject>

- (void)userInfo:(UserInfo *)userInfo select:(BOOL)isLogin;

@end
// 单例类 判断用户登录状态
@interface UserInfo : NSObject

@property (nonatomic, assign)BOOL isLogin;
@property (nonatomic, assign)id<UserInfoDelegate>delegate;
@property (nonatomic, copy)NSString *userName;
@property (nonatomic, assign)BOOL isJudge;
@property (nonatomic, assign)BOOL isNight;

+ (UserInfo *)shareUserInfo;

@end
